﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using CashFlow.Db.DAL;
using CashFlow.Db.Entity;

namespace ConsoleApplication1._03_Service._00_Db
{
    public class OrderService
    {
        public static IList<OrderEntity> QueryAll(string date)
        {
            using (var db = SqlSugarHelper.GetDb())
            {
                var ls = db.Queryable<OrderEntity>()
                            .Where(x => x.CreateTime.ToString().Substring(0, 10) == date)
                            .ToList();
                return ls;
            }
        }
    }
}
